<template>
  <view>
    <slot></slot>
  </view>
</template>
<script lang="ts" setup>
  defineOptions({
    name: 'TmSlideSwitchGroup',
  });

  const props = withDefaults(
    defineProps<{
      activeOpenId?: number;
    }>(),
    {
      /** -1 关闭所有 */
      activeOpenId: -1,
    },
  );

  provide(
    'activeOpenId',
    computed(() => props.activeOpenId),
  );
</script>
